package com.tdkj.model.decorate;

import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.tdkj.model.base.BaseEntity;

/**
 * 
 */
@Entity
@Table(name = "decorate_diamond")
public class BeanDiamond extends BaseEntity {

	private String name;
	
	private List<BeanDiamondCustom> customs;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@OneToMany(fetch=FetchType.LAZY , cascade={CascadeType.REFRESH}, mappedBy="diamond")
	public List<BeanDiamondCustom> getCustoms() {
		return customs;
	}

	public void setCustoms(List<BeanDiamondCustom> customs) {
		this.customs = customs;
	}
	
	
}